package com.example.service.impl;

import com.example.dao.FoodDao;
import com.example.entity.Food;
import com.example.service.FoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FoodServiceImpl implements FoodService {

    @Autowired
    private FoodDao foodDao;

    @Override
    public List<Food> getFoodByShopId(Integer shopId) {
        return foodDao.getFoodByShopId(shopId);
    }
}